package com.ruyuan.user.server.domain.service;

import com.ruyuan.user.api.model.enums.UserJobRelationTypeEnum;
import com.ruyuan.user.server.domain.model.Job;
import com.ruyuan.user.server.domain.service.request.DelJobReq;
import com.ruyuan.user.server.domain.service.request.SaveUserMultiJobReq;

import java.util.List;
import java.util.Map;

/**
 * @author xx
 */
public interface JobDomainService {

    Long saveJob(Job job);

    Job queryById(Long id);

    List<Job> queryBossJobByOrgId(Long orgId);

    List<Job> queryByOrgId(Long orgId);

    Boolean delJob(DelJobReq req);

    List<Job> querySubJobsById(Long jobId);

    Map<UserJobRelationTypeEnum, List<Job>> queryUserJobs(Long userId);

    Boolean saveUserMultiJob(SaveUserMultiJobReq req);

}
